home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
utility
/
push.zip
/
PUSH.DOC
next >
Wrap
Text File
|
1991-08-03
|
3KB
|
66 lines
PUSH
~~~~
by
Mark Thompson
CaveWare Software
PUSH is a program to be used for "pushing" keys onto the keyboard
buffer. This is useful for starting up programs which repetitively
require the same keystrokes upon startup. Unfortunately, the maximum
number of keys that may be pushed into the keyboard buffer is 15, and
it is on a "first-in, first-out" basis, just as if you had typed the
keys yourself.
An example batch file of this is:
PUSH abcd
game.exe
This batch file would first push the keys A, B, C, and D onto the
buffer, then run GAME.EXE. When the game polls for keyboard input,
it would get ABCD, then any other keys after that, you would have to
type yourself (unlike piping(|) or re-routing(<>) input which expects
ALL input to come from the re-routed input.) The program will let you
know if the pushed keys had to be truncated.
Some other keys which may be used from the command line are:
~ = SPACE
@ = Carriage Return
^ = Up arrow
! = Down arrow
< = Left arrow
> = Right arrow
so a batch file that looked like this:
PUSH ~!<>^@
game.exe
would push onto the buffer a SPACE, Down cursor, Left cursor, Right
cursor, Up cursor, and an ENTER; then it would run GAME.
If I'm not mistaken, SPACES are truncated from the end of the command
line, so if the last thing you need PUSH'ed onto the keyboard buffer is
a space, you should substitute a '~' instead.
This program is guaranteed that it will take up drive space of about
22K or so, and THAT IS ALL. It was written in the course of about
30 programming minutes, so it's a "freebie" courtesy of myself on the
behalf of CaveWare Software. If you find it useful and feel compelled
to tell me what you did with it or want to gimme some $$$ :) for it,
send it to: Mark Thompson
Suite 135
2256 Fellowship Rd.
Tucker, GA 30084
If you have ideas on other CaveWare products that might be useful, but
you don't have the programming knowledge to implement it, send your
phone #/address to the above address. If we find it could be useful
to more people than you/us, we just might be able to work out something.